#include "osObjects.h"
#include "pincfg.h"
#include "lcd.h"
#include "rtctime.h"
#include "dataproc.h"

u8 lcd_buff[32];

/*****************************************************************************//*!
*
* @brief   led task.
*     
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/
void LcdCtrTask(void *argument)
{
    OS_ERR      os_err;

	u8 lcd_id[12];
    LCD_Init();
    LCD_Display_Dir(1);
    LCD_Scan_Dir(0);
    sprintf((char*)lcd_id,"LCD ID:%04X",lcddev.id);
    
    LCD_Clear(LIGHTBLUE);
    
    for(;;){
        OSTimeDly (20, OS_OPT_TIME_DLY, &os_err);
    
        BACK_COLOR=LIGHTBLUE;
		POINT_COLOR=WHITE;
        
		LCD_ShowString(10,40,300,32,32,"What a lovely day !"); 	
		LCD_ShowString(10,80,300,24,24,"Hellow, where are you ?");
		LCD_ShowString(10,110,240,16,16,"ATOM@ALIENTEK");
 		LCD_ShowString(10,130,240,16,16,lcd_id);
        TimeToAscii(&TimeCur,lcd_buff);
		LCD_ShowString(10,150,240,12,12,lcd_buff);	      					 
    }
}





